// Class for characters with animations
//
// Nick Kitten
// 2009

#pragma once

#include "Display3DObj.h"
#include "Animation.h"

using namespace std;

class Character: public Display3DObj
{
public:
	Character( char * fileName, int id );
	~Character();

	enum Action{ Attack, Die, Idle, Impact, Move };
	void addAnimation( Action action, char * fileName, int speed = 100, 
		bool loopable = false, bool velocityDependent = false );
	void playAnimation( Action action );
	void stopAnimation();
	void setInterpolation( int interp );

protected:
	// current running speed used to scale animation playback
	float speed;
	static const int maxAnimations = 10;
	Animation animations[maxAnimations];
	
	
};